new Handle:g_InfiniteSprint = INVALID_HANDLE
new Handle:m_InfiniteSprint = INVALID_HANDLE

//--------------------------------------------------------//
// Remove cheat flag from infinite_aux_power to enable it //
//--------------------------------------------------------//
public InfiniteBTTRChanged(Handle:convar, const String:oldValue[], const String:newValue[])
{
	// find command
	m_InfiniteSprint = FindConVar("sv_infinite_aux_power")
	
	if (StringToInt(newValue) == 1)
	{
		new mflags = GetConVarFlags(m_InfiniteSprint) // Get flags
		mflags &= ~FCVAR_CHEAT // remove flag "FCVAR_CHEAT" with '|'
		SetConVarFlags(m_InfiniteSprint, mflags) // Set new flags
		PrintToServer("[SM] Infinite Sprint ON.") // message
		SetConVarInt(m_InfiniteSprint,1)
	}
	else
	{
		PrintToServer("[SM] Infinite Sprint OFF.")
		SetConVarInt(m_InfiniteSprint,0)
	}
}

public InfiniteAuxChanged(Handle:convar, const String:oldValue[], const String:newValue[])
{
	m_InfiniteSprint = FindConVar("sv_infinite_aux_power")
	
	if (StringToInt(newValue) == 1)
	{
		SetConVarInt(g_InfiniteSprint,1)
	}
	else
	{
		SetConVarInt(g_InfiniteSprint,0)
	}
}